import java.util.Vector;
import java.util.Iterator;
public class Unit
{
    String name;
    Vector<DocUnit> docs;

    public Unit()
    {
        name = new String();
        docs = new Vector<DocUnit>();
    }
    public void print()
    {
        System.out.println(name);
        Iterator iter = docs.iterator();
        while (iter.hasNext())
        {
            DocUnit docunit = (DocUnit)iter.next();
            docunit.print();
        }
    }
}
